<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>

<c:if test="${fn:length( termsList ) <= 0 }">
    <table width="100%" cellpadding="20" style="text-align:center;height:120px;">
        <tr>
            <td>목록이 없습니다.</td>
        </tr>
    </table>
</c:if>
<c:if test="${fn:length( termsList ) > 0 }">
    <table class="list" cellspacing="0" cellpadding="10" style="text-align:center;width:100%;">
    <tr class="table_title">
        <td width="10%">No.</td>
        <td width="20%">날짜</td>
        <td>제목</td>
    </tr>
    <c:forEach var="list" items="${termsList }">
        <tr>
            <td>${list.terms_no }</td>
            <td>${list.regdate }</td>
            <td align="left"> &nbsp; <a href="./readTerms.ga?terms_no=${list.terms_no }">${list.subject }</a></td>
        </tr>
    </c:forEach>
</table>
</c:if>

</body>
</html>